package org.jeecg.modules.ncmeapis.network.entities.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 用户组路径权限映射
 * @Author: 404GroupHSW
 * @Date:   2024-03-14
 * @Version: V1.0
 */
@Data
@TableName("network_group_path_perm")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="network_group_path_perm对象", description="用户组路径权限映射")
public class GroupPathPerm implements Serializable {
    private static final long serialVersionUID = 1L;

    @com.baomidou.mybatisplus.annotation.TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    @Excel(name = "用户组类型", width = 15, dicCode = "group_type")
    @com.baomidou.mybatisplus.annotation.TableField("group_type")
    @Dict(dicCode = "group_type")
    @ApiModelProperty(value = "用户组类型")
    private String groupType;

	@Excel(name = "用户组id", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@com.baomidou.mybatisplus.annotation.TableField("group_id")
    @ApiModelProperty(value = "用户组id")
    private String groupId;

    @com.baomidou.mybatisplus.annotation.TableField(exist = false)
    @Dict(dictTable = "sys_role", dicText = "role_name", dicCode = "id")
    private String roleId;

    @com.baomidou.mybatisplus.annotation.TableField(exist = false)
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    private String deptId;

    @com.baomidou.mybatisplus.annotation.TableField(exist = false)
    @Dict(dictTable = "sys_tenant", dicText = "name", dicCode = "id")
    private String tenant;

	@Excel(name = "目录", width = 15, dictTable = "network_path", dicText = "name", dicCode = "id")
	@com.baomidou.mybatisplus.annotation.TableField("path_id")
	@Dict(dictTable = "network_path", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "目录")
    private String pathId;

	@Excel(name = "权限标识", width = 15, dicCode = "network_path_perm")
	@com.baomidou.mybatisplus.annotation.TableField("perms")
	@Dict(dicCode = "network_path_perm")
    @ApiModelProperty(value = "权限标识")
    private String perms;

	@com.baomidou.mybatisplus.annotation.TableField("create_by")
    @ApiModelProperty(value = "创建人")
    private String createBy;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")

    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	@com.baomidou.mybatisplus.annotation.TableField("update_by")
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")

    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	@com.baomidou.mybatisplus.annotation.TableField("sys_org_code")
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**租户id*/
    @Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private java.lang.String tenantId;

}
